From: Emilio Pozuelo Monfort Date: Mon, 15 Jul 2013 15:42:43 +0000 (+0200) Subject: st-scroll-view: properly check if the scrollbars are visible X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~3928 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=cfecd063c9ca3d18cd;p=gnome-shell.git st-scroll-view: properly check if the scrollbars are visible We don't set :visible on the scrollbars, but use booleans to track if they are visible. Thus check the booleans instead of the actor's properties when allocating the scrollbars. https://bugzilla.gnome.org/show_bug.cgi?id=704265 --- diff --git a/src/st/st-scroll-view.c b/src/st/st-scroll-view.c index 9ea394b05..04e263f60 100644 --- a/src/st/st-scroll-view.c +++ b/src/st/st-scroll-view.c @@ -598,7 +598,7 @@ st_scroll_view_allocate (ClutterActor *actor, */ /* Vertical scrollbar */ - if (CLUTTER_ACTOR_IS_VISIBLE (priv->vscroll)) + if (vscrollbar_visible) { if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL) { @@ -617,7 +617,7 @@ st_scroll_view_allocate (ClutterActor *actor, } /* Horizontal scrollbar */ - if (CLUTTER_ACTOR_IS_VISIBLE (priv->hscroll)) + if (hscrollbar_visible) { if (clutter_actor_get_text_direction (actor) == CLUTTER_TEXT_DIRECTION_RTL) {